import axios from "../../utils/request"

export function getTask(data:any){
  return axios({
    url:"http://localhost:8080/orders/query",
    method:"post",
    data
  })
}

export function confirmOrder(data:{orderId:number}){
  return axios({
    url:"http://localhost:8080/orders/add/order",
    method:"post",
    headers: {
      Authorization: localStorage.getItem('token') // 从本地存储中获取 token
    },
    params:{
      orderId:data.orderId
    }
  })
}